//
//  IGTopicTableViewCell.h
//  jingdongfang
//
//  Created by BOE on 2017/8/18.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JGGView.h"
#import "IGCommentBean.h"

@class IGTopicTableViewCell;
@class IGTopicModel;
@class IGTopicCommentTableViewCell;
@class IGCommentBean;
static NSString *const kIGTopicTableViewCell = @"kIGTopicTableViewCell";
typedef void(^CommentBtnClickBlock)(UIButton *commentBtn,NSIndexPath * indexPath);
@protocol IGTopicTableViewCellDelegate <NSObject>

- (void)reloadCellHeightForModel:(IGTopicModel *)model atIndexPath:(NSIndexPath *)indexPath;
- (void)passCellHeight:(CGFloat)cellHeight commentModel:(IGCommentBean *)commentModel commentCell:(UITableViewCell *)commentCell messageCell:(IGTopicTableViewCell *)topicCell;

@end

@interface IGTopicTableViewCell : UITableViewCell

@property (nonatomic, strong) JGGView *jggView;

/**
 *  评论按钮的block
 */
@property (nonatomic, copy) CommentBtnClickBlock commentBtnClickBlock;

/**
 *  点击图片的block
 */
@property (nonatomic, copy) TapBlcok tapImageBlock;

/**
 *  点击分享按钮
 */
@property (nonatomic, copy) NoParaNoReturnBlock shareBlock;

/**
 *  点击关注按钮
 */
@property (nonatomic, copy) NoParaNoReturnBlock focusUser;

/**
 *  点击点赞按钮
 */
@property (nonatomic, copy) NoParaNoReturnBlock likeBlock;

@property (nonatomic, weak) id<IGTopicTableViewCellDelegate> delegate;

//填充信息
- (void)configCellWithModel:(IGTopicModel *)model indexPath:(NSIndexPath *)indexPath;

+ (IGTopicTableViewCell *)cellWithTableView:(UITableView *)tableView;

@end
